package com.lanhai.longheng.interfaces;

import com.lanhai.longheng.beans.DeviceDataBean;
import com.lanhai.longheng.enums.TransDirectionEnum; 

/**
 * 对接设备解析协议
 * @author zhengwei
 * @param <TransDirectionEnum>
 *
 */
public interface IDeviceProtocol {
	
	//传输指令
	byte[] applyTransfer(byte line, TransDirectionEnum type); 
	
	//清零指令
	byte[] agvLeave(byte line );
	 
	//agv异常
	byte[] agvError(byte line );
	
	//申请收货
	byte[] applyRecieve( byte line,TransDirectionEnum type);
	
	//申请离开指令
	byte[] applyLeave( byte line,TransDirectionEnum type);
	
	//解析数据
	DeviceDataBean analyseData(String ip, byte[] buf);
}
